package org.lanqiao.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class BillExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BillExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andBidIsNull() {
            addCriterion("bid is null");
            return (Criteria) this;
        }

        public Criteria andBidIsNotNull() {
            addCriterion("bid is not null");
            return (Criteria) this;
        }

        public Criteria andBidEqualTo(Integer value) {
            addCriterion("bid =", value, "bid");
            return (Criteria) this;
        }

        public Criteria andBidNotEqualTo(Integer value) {
            addCriterion("bid <>", value, "bid");
            return (Criteria) this;
        }

        public Criteria andBidGreaterThan(Integer value) {
            addCriterion("bid >", value, "bid");
            return (Criteria) this;
        }

        public Criteria andBidGreaterThanOrEqualTo(Integer value) {
            addCriterion("bid >=", value, "bid");
            return (Criteria) this;
        }

        public Criteria andBidLessThan(Integer value) {
            addCriterion("bid <", value, "bid");
            return (Criteria) this;
        }

        public Criteria andBidLessThanOrEqualTo(Integer value) {
            addCriterion("bid <=", value, "bid");
            return (Criteria) this;
        }

        public Criteria andBidIn(List<Integer> values) {
            addCriterion("bid in", values, "bid");
            return (Criteria) this;
        }

        public Criteria andBidNotIn(List<Integer> values) {
            addCriterion("bid not in", values, "bid");
            return (Criteria) this;
        }

        public Criteria andBidBetween(Integer value1, Integer value2) {
            addCriterion("bid between", value1, value2, "bid");
            return (Criteria) this;
        }

        public Criteria andBidNotBetween(Integer value1, Integer value2) {
            addCriterion("bid not between", value1, value2, "bid");
            return (Criteria) this;
        }

        public Criteria andBnameIsNull() {
            addCriterion("bname is null");
            return (Criteria) this;
        }

        public Criteria andBnameIsNotNull() {
            addCriterion("bname is not null");
            return (Criteria) this;
        }

        public Criteria andBnameEqualTo(String value) {
            addCriterion("bname =", value, "bname");
            return (Criteria) this;
        }

        public Criteria andBnameNotEqualTo(String value) {
            addCriterion("bname <>", value, "bname");
            return (Criteria) this;
        }

        public Criteria andBnameGreaterThan(String value) {
            addCriterion("bname >", value, "bname");
            return (Criteria) this;
        }

        public Criteria andBnameGreaterThanOrEqualTo(String value) {
            addCriterion("bname >=", value, "bname");
            return (Criteria) this;
        }

        public Criteria andBnameLessThan(String value) {
            addCriterion("bname <", value, "bname");
            return (Criteria) this;
        }

        public Criteria andBnameLessThanOrEqualTo(String value) {
            addCriterion("bname <=", value, "bname");
            return (Criteria) this;
        }

        public Criteria andBnameLike(String value) {
            addCriterion("bname like", value, "bname");
            return (Criteria) this;
        }

        public Criteria andBnameNotLike(String value) {
            addCriterion("bname not like", value, "bname");
            return (Criteria) this;
        }

        public Criteria andBnameIn(List<String> values) {
            addCriterion("bname in", values, "bname");
            return (Criteria) this;
        }

        public Criteria andBnameNotIn(List<String> values) {
            addCriterion("bname not in", values, "bname");
            return (Criteria) this;
        }

        public Criteria andBnameBetween(String value1, String value2) {
            addCriterion("bname between", value1, value2, "bname");
            return (Criteria) this;
        }

        public Criteria andBnameNotBetween(String value1, String value2) {
            addCriterion("bname not between", value1, value2, "bname");
            return (Criteria) this;
        }

        public Criteria andBidcardIsNull() {
            addCriterion("bidcard is null");
            return (Criteria) this;
        }

        public Criteria andBidcardIsNotNull() {
            addCriterion("bidcard is not null");
            return (Criteria) this;
        }

        public Criteria andBidcardEqualTo(String value) {
            addCriterion("bidcard =", value, "bidcard");
            return (Criteria) this;
        }

        public Criteria andBidcardNotEqualTo(String value) {
            addCriterion("bidcard <>", value, "bidcard");
            return (Criteria) this;
        }

        public Criteria andBidcardGreaterThan(String value) {
            addCriterion("bidcard >", value, "bidcard");
            return (Criteria) this;
        }

        public Criteria andBidcardGreaterThanOrEqualTo(String value) {
            addCriterion("bidcard >=", value, "bidcard");
            return (Criteria) this;
        }

        public Criteria andBidcardLessThan(String value) {
            addCriterion("bidcard <", value, "bidcard");
            return (Criteria) this;
        }

        public Criteria andBidcardLessThanOrEqualTo(String value) {
            addCriterion("bidcard <=", value, "bidcard");
            return (Criteria) this;
        }

        public Criteria andBidcardLike(String value) {
            addCriterion("bidcard like", value, "bidcard");
            return (Criteria) this;
        }

        public Criteria andBidcardNotLike(String value) {
            addCriterion("bidcard not like", value, "bidcard");
            return (Criteria) this;
        }

        public Criteria andBidcardIn(List<String> values) {
            addCriterion("bidcard in", values, "bidcard");
            return (Criteria) this;
        }

        public Criteria andBidcardNotIn(List<String> values) {
            addCriterion("bidcard not in", values, "bidcard");
            return (Criteria) this;
        }

        public Criteria andBidcardBetween(String value1, String value2) {
            addCriterion("bidcard between", value1, value2, "bidcard");
            return (Criteria) this;
        }

        public Criteria andBidcardNotBetween(String value1, String value2) {
            addCriterion("bidcard not between", value1, value2, "bidcard");
            return (Criteria) this;
        }

        public Criteria andBacnameIsNull() {
            addCriterion("bacname is null");
            return (Criteria) this;
        }

        public Criteria andBacnameIsNotNull() {
            addCriterion("bacname is not null");
            return (Criteria) this;
        }

        public Criteria andBacnameEqualTo(String value) {
            addCriterion("bacname =", value, "bacname");
            return (Criteria) this;
        }

        public Criteria andBacnameNotEqualTo(String value) {
            addCriterion("bacname <>", value, "bacname");
            return (Criteria) this;
        }

        public Criteria andBacnameGreaterThan(String value) {
            addCriterion("bacname >", value, "bacname");
            return (Criteria) this;
        }

        public Criteria andBacnameGreaterThanOrEqualTo(String value) {
            addCriterion("bacname >=", value, "bacname");
            return (Criteria) this;
        }

        public Criteria andBacnameLessThan(String value) {
            addCriterion("bacname <", value, "bacname");
            return (Criteria) this;
        }

        public Criteria andBacnameLessThanOrEqualTo(String value) {
            addCriterion("bacname <=", value, "bacname");
            return (Criteria) this;
        }

        public Criteria andBacnameLike(String value) {
            addCriterion("bacname like", value, "bacname");
            return (Criteria) this;
        }

        public Criteria andBacnameNotLike(String value) {
            addCriterion("bacname not like", value, "bacname");
            return (Criteria) this;
        }

        public Criteria andBacnameIn(List<String> values) {
            addCriterion("bacname in", values, "bacname");
            return (Criteria) this;
        }

        public Criteria andBacnameNotIn(List<String> values) {
            addCriterion("bacname not in", values, "bacname");
            return (Criteria) this;
        }

        public Criteria andBacnameBetween(String value1, String value2) {
            addCriterion("bacname between", value1, value2, "bacname");
            return (Criteria) this;
        }

        public Criteria andBacnameNotBetween(String value1, String value2) {
            addCriterion("bacname not between", value1, value2, "bacname");
            return (Criteria) this;
        }

        public Criteria andBcostIsNull() {
            addCriterion("bcost is null");
            return (Criteria) this;
        }

        public Criteria andBcostIsNotNull() {
            addCriterion("bcost is not null");
            return (Criteria) this;
        }

        public Criteria andBcostEqualTo(Double value) {
            addCriterion("bcost =", value, "bcost");
            return (Criteria) this;
        }

        public Criteria andBcostNotEqualTo(Double value) {
            addCriterion("bcost <>", value, "bcost");
            return (Criteria) this;
        }

        public Criteria andBcostGreaterThan(Double value) {
            addCriterion("bcost >", value, "bcost");
            return (Criteria) this;
        }

        public Criteria andBcostGreaterThanOrEqualTo(Double value) {
            addCriterion("bcost >=", value, "bcost");
            return (Criteria) this;
        }

        public Criteria andBcostLessThan(Double value) {
            addCriterion("bcost <", value, "bcost");
            return (Criteria) this;
        }

        public Criteria andBcostLessThanOrEqualTo(Double value) {
            addCriterion("bcost <=", value, "bcost");
            return (Criteria) this;
        }

        public Criteria andBcostIn(List<Double> values) {
            addCriterion("bcost in", values, "bcost");
            return (Criteria) this;
        }

        public Criteria andBcostNotIn(List<Double> values) {
            addCriterion("bcost not in", values, "bcost");
            return (Criteria) this;
        }

        public Criteria andBcostBetween(Double value1, Double value2) {
            addCriterion("bcost between", value1, value2, "bcost");
            return (Criteria) this;
        }

        public Criteria andBcostNotBetween(Double value1, Double value2) {
            addCriterion("bcost not between", value1, value2, "bcost");
            return (Criteria) this;
        }

        public Criteria andBmonthIsNull() {
            addCriterion("bmonth is null");
            return (Criteria) this;
        }

        public Criteria andBmonthIsNotNull() {
            addCriterion("bmonth is not null");
            return (Criteria) this;
        }

        public Criteria andBmonthEqualTo(Date value) {
            addCriterionForJDBCDate("bmonth =", value, "bmonth");
            return (Criteria) this;
        }

        public Criteria andBmonthNotEqualTo(Date value) {
            addCriterionForJDBCDate("bmonth <>", value, "bmonth");
            return (Criteria) this;
        }

        public Criteria andBmonthGreaterThan(Date value) {
            addCriterionForJDBCDate("bmonth >", value, "bmonth");
            return (Criteria) this;
        }

        public Criteria andBmonthGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("bmonth >=", value, "bmonth");
            return (Criteria) this;
        }

        public Criteria andBmonthLessThan(Date value) {
            addCriterionForJDBCDate("bmonth <", value, "bmonth");
            return (Criteria) this;
        }

        public Criteria andBmonthLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("bmonth <=", value, "bmonth");
            return (Criteria) this;
        }

        public Criteria andBmonthIn(List<Date> values) {
            addCriterionForJDBCDate("bmonth in", values, "bmonth");
            return (Criteria) this;
        }

        public Criteria andBmonthNotIn(List<Date> values) {
            addCriterionForJDBCDate("bmonth not in", values, "bmonth");
            return (Criteria) this;
        }

        public Criteria andBmonthBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("bmonth between", value1, value2, "bmonth");
            return (Criteria) this;
        }

        public Criteria andBmonthNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("bmonth not between", value1, value2, "bmonth");
            return (Criteria) this;
        }

        public Criteria andBtypeIsNull() {
            addCriterion("btype is null");
            return (Criteria) this;
        }

        public Criteria andBtypeIsNotNull() {
            addCriterion("btype is not null");
            return (Criteria) this;
        }

        public Criteria andBtypeEqualTo(String value) {
            addCriterion("btype =", value, "btype");
            return (Criteria) this;
        }

        public Criteria andBtypeNotEqualTo(String value) {
            addCriterion("btype <>", value, "btype");
            return (Criteria) this;
        }

        public Criteria andBtypeGreaterThan(String value) {
            addCriterion("btype >", value, "btype");
            return (Criteria) this;
        }

        public Criteria andBtypeGreaterThanOrEqualTo(String value) {
            addCriterion("btype >=", value, "btype");
            return (Criteria) this;
        }

        public Criteria andBtypeLessThan(String value) {
            addCriterion("btype <", value, "btype");
            return (Criteria) this;
        }

        public Criteria andBtypeLessThanOrEqualTo(String value) {
            addCriterion("btype <=", value, "btype");
            return (Criteria) this;
        }

        public Criteria andBtypeLike(String value) {
            addCriterion("btype like", value, "btype");
            return (Criteria) this;
        }

        public Criteria andBtypeNotLike(String value) {
            addCriterion("btype not like", value, "btype");
            return (Criteria) this;
        }

        public Criteria andBtypeIn(List<String> values) {
            addCriterion("btype in", values, "btype");
            return (Criteria) this;
        }

        public Criteria andBtypeNotIn(List<String> values) {
            addCriterion("btype not in", values, "btype");
            return (Criteria) this;
        }

        public Criteria andBtypeBetween(String value1, String value2) {
            addCriterion("btype between", value1, value2, "btype");
            return (Criteria) this;
        }

        public Criteria andBtypeNotBetween(String value1, String value2) {
            addCriterion("btype not between", value1, value2, "btype");
            return (Criteria) this;
        }

        public Criteria andBstatusIsNull() {
            addCriterion("bstatus is null");
            return (Criteria) this;
        }

        public Criteria andBstatusIsNotNull() {
            addCriterion("bstatus is not null");
            return (Criteria) this;
        }

        public Criteria andBstatusEqualTo(String value) {
            addCriterion("bstatus =", value, "bstatus");
            return (Criteria) this;
        }

        public Criteria andBstatusNotEqualTo(String value) {
            addCriterion("bstatus <>", value, "bstatus");
            return (Criteria) this;
        }

        public Criteria andBstatusGreaterThan(String value) {
            addCriterion("bstatus >", value, "bstatus");
            return (Criteria) this;
        }

        public Criteria andBstatusGreaterThanOrEqualTo(String value) {
            addCriterion("bstatus >=", value, "bstatus");
            return (Criteria) this;
        }

        public Criteria andBstatusLessThan(String value) {
            addCriterion("bstatus <", value, "bstatus");
            return (Criteria) this;
        }

        public Criteria andBstatusLessThanOrEqualTo(String value) {
            addCriterion("bstatus <=", value, "bstatus");
            return (Criteria) this;
        }

        public Criteria andBstatusLike(String value) {
            addCriterion("bstatus like", value, "bstatus");
            return (Criteria) this;
        }

        public Criteria andBstatusNotLike(String value) {
            addCriterion("bstatus not like", value, "bstatus");
            return (Criteria) this;
        }

        public Criteria andBstatusIn(List<String> values) {
            addCriterion("bstatus in", values, "bstatus");
            return (Criteria) this;
        }

        public Criteria andBstatusNotIn(List<String> values) {
            addCriterion("bstatus not in", values, "bstatus");
            return (Criteria) this;
        }

        public Criteria andBstatusBetween(String value1, String value2) {
            addCriterion("bstatus between", value1, value2, "bstatus");
            return (Criteria) this;
        }

        public Criteria andBstatusNotBetween(String value1, String value2) {
            addCriterion("bstatus not between", value1, value2, "bstatus");
            return (Criteria) this;
        }

        public Criteria andBosnameIsNull() {
            addCriterion("bosname is null");
            return (Criteria) this;
        }

        public Criteria andBosnameIsNotNull() {
            addCriterion("bosname is not null");
            return (Criteria) this;
        }

        public Criteria andBosnameEqualTo(String value) {
            addCriterion("bosname =", value, "bosname");
            return (Criteria) this;
        }

        public Criteria andBosnameNotEqualTo(String value) {
            addCriterion("bosname <>", value, "bosname");
            return (Criteria) this;
        }

        public Criteria andBosnameGreaterThan(String value) {
            addCriterion("bosname >", value, "bosname");
            return (Criteria) this;
        }

        public Criteria andBosnameGreaterThanOrEqualTo(String value) {
            addCriterion("bosname >=", value, "bosname");
            return (Criteria) this;
        }

        public Criteria andBosnameLessThan(String value) {
            addCriterion("bosname <", value, "bosname");
            return (Criteria) this;
        }

        public Criteria andBosnameLessThanOrEqualTo(String value) {
            addCriterion("bosname <=", value, "bosname");
            return (Criteria) this;
        }

        public Criteria andBosnameLike(String value) {
            addCriterion("bosname like", value, "bosname");
            return (Criteria) this;
        }

        public Criteria andBosnameNotLike(String value) {
            addCriterion("bosname not like", value, "bosname");
            return (Criteria) this;
        }

        public Criteria andBosnameIn(List<String> values) {
            addCriterion("bosname in", values, "bosname");
            return (Criteria) this;
        }

        public Criteria andBosnameNotIn(List<String> values) {
            addCriterion("bosname not in", values, "bosname");
            return (Criteria) this;
        }

        public Criteria andBosnameBetween(String value1, String value2) {
            addCriterion("bosname between", value1, value2, "bosname");
            return (Criteria) this;
        }

        public Criteria andBosnameNotBetween(String value1, String value2) {
            addCriterion("bosname not between", value1, value2, "bosname");
            return (Criteria) this;
        }

        public Criteria andBipIsNull() {
            addCriterion("bip is null");
            return (Criteria) this;
        }

        public Criteria andBipIsNotNull() {
            addCriterion("bip is not null");
            return (Criteria) this;
        }

        public Criteria andBipEqualTo(String value) {
            addCriterion("bip =", value, "bip");
            return (Criteria) this;
        }

        public Criteria andBipNotEqualTo(String value) {
            addCriterion("bip <>", value, "bip");
            return (Criteria) this;
        }

        public Criteria andBipGreaterThan(String value) {
            addCriterion("bip >", value, "bip");
            return (Criteria) this;
        }

        public Criteria andBipGreaterThanOrEqualTo(String value) {
            addCriterion("bip >=", value, "bip");
            return (Criteria) this;
        }

        public Criteria andBipLessThan(String value) {
            addCriterion("bip <", value, "bip");
            return (Criteria) this;
        }

        public Criteria andBipLessThanOrEqualTo(String value) {
            addCriterion("bip <=", value, "bip");
            return (Criteria) this;
        }

        public Criteria andBipLike(String value) {
            addCriterion("bip like", value, "bip");
            return (Criteria) this;
        }

        public Criteria andBipNotLike(String value) {
            addCriterion("bip not like", value, "bip");
            return (Criteria) this;
        }

        public Criteria andBipIn(List<String> values) {
            addCriterion("bip in", values, "bip");
            return (Criteria) this;
        }

        public Criteria andBipNotIn(List<String> values) {
            addCriterion("bip not in", values, "bip");
            return (Criteria) this;
        }

        public Criteria andBipBetween(String value1, String value2) {
            addCriterion("bip between", value1, value2, "bip");
            return (Criteria) this;
        }

        public Criteria andBipNotBetween(String value1, String value2) {
            addCriterion("bip not between", value1, value2, "bip");
            return (Criteria) this;
        }

        public Criteria andBacidIsNull() {
            addCriterion("bacid is null");
            return (Criteria) this;
        }

        public Criteria andBacidIsNotNull() {
            addCriterion("bacid is not null");
            return (Criteria) this;
        }

        public Criteria andBacidEqualTo(Integer value) {
            addCriterion("bacid =", value, "bacid");
            return (Criteria) this;
        }

        public Criteria andBacidNotEqualTo(Integer value) {
            addCriterion("bacid <>", value, "bacid");
            return (Criteria) this;
        }

        public Criteria andBacidGreaterThan(Integer value) {
            addCriterion("bacid >", value, "bacid");
            return (Criteria) this;
        }

        public Criteria andBacidGreaterThanOrEqualTo(Integer value) {
            addCriterion("bacid >=", value, "bacid");
            return (Criteria) this;
        }

        public Criteria andBacidLessThan(Integer value) {
            addCriterion("bacid <", value, "bacid");
            return (Criteria) this;
        }

        public Criteria andBacidLessThanOrEqualTo(Integer value) {
            addCriterion("bacid <=", value, "bacid");
            return (Criteria) this;
        }

        public Criteria andBacidIn(List<Integer> values) {
            addCriterion("bacid in", values, "bacid");
            return (Criteria) this;
        }

        public Criteria andBacidNotIn(List<Integer> values) {
            addCriterion("bacid not in", values, "bacid");
            return (Criteria) this;
        }

        public Criteria andBacidBetween(Integer value1, Integer value2) {
            addCriterion("bacid between", value1, value2, "bacid");
            return (Criteria) this;
        }

        public Criteria andBacidNotBetween(Integer value1, Integer value2) {
            addCriterion("bacid not between", value1, value2, "bacid");
            return (Criteria) this;
        }

        public Criteria andBtimeIsNull() {
            addCriterion("btime is null");
            return (Criteria) this;
        }

        public Criteria andBtimeIsNotNull() {
            addCriterion("btime is not null");
            return (Criteria) this;
        }

        public Criteria andBtimeEqualTo(String value) {
            addCriterion("btime =", value, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeNotEqualTo(String value) {
            addCriterion("btime <>", value, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeGreaterThan(String value) {
            addCriterion("btime >", value, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeGreaterThanOrEqualTo(String value) {
            addCriterion("btime >=", value, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeLessThan(String value) {
            addCriterion("btime <", value, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeLessThanOrEqualTo(String value) {
            addCriterion("btime <=", value, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeLike(String value) {
            addCriterion("btime like", value, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeNotLike(String value) {
            addCriterion("btime not like", value, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeIn(List<String> values) {
            addCriterion("btime in", values, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeNotIn(List<String> values) {
            addCriterion("btime not in", values, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeBetween(String value1, String value2) {
            addCriterion("btime between", value1, value2, "btime");
            return (Criteria) this;
        }

        public Criteria andBtimeNotBetween(String value1, String value2) {
            addCriterion("btime not between", value1, value2, "btime");
            return (Criteria) this;
        }

        public Criteria andBcnameIsNull() {
            addCriterion("bcname is null");
            return (Criteria) this;
        }

        public Criteria andBcnameIsNotNull() {
            addCriterion("bcname is not null");
            return (Criteria) this;
        }

        public Criteria andBcnameEqualTo(String value) {
            addCriterion("bcname =", value, "bcname");
            return (Criteria) this;
        }

        public Criteria andBcnameNotEqualTo(String value) {
            addCriterion("bcname <>", value, "bcname");
            return (Criteria) this;
        }

        public Criteria andBcnameGreaterThan(String value) {
            addCriterion("bcname >", value, "bcname");
            return (Criteria) this;
        }

        public Criteria andBcnameGreaterThanOrEqualTo(String value) {
            addCriterion("bcname >=", value, "bcname");
            return (Criteria) this;
        }

        public Criteria andBcnameLessThan(String value) {
            addCriterion("bcname <", value, "bcname");
            return (Criteria) this;
        }

        public Criteria andBcnameLessThanOrEqualTo(String value) {
            addCriterion("bcname <=", value, "bcname");
            return (Criteria) this;
        }

        public Criteria andBcnameLike(String value) {
            addCriterion("bcname like", value, "bcname");
            return (Criteria) this;
        }

        public Criteria andBcnameNotLike(String value) {
            addCriterion("bcname not like", value, "bcname");
            return (Criteria) this;
        }

        public Criteria andBcnameIn(List<String> values) {
            addCriterion("bcname in", values, "bcname");
            return (Criteria) this;
        }

        public Criteria andBcnameNotIn(List<String> values) {
            addCriterion("bcname not in", values, "bcname");
            return (Criteria) this;
        }

        public Criteria andBcnameBetween(String value1, String value2) {
            addCriterion("bcname between", value1, value2, "bcname");
            return (Criteria) this;
        }

        public Criteria andBcnameNotBetween(String value1, String value2) {
            addCriterion("bcname not between", value1, value2, "bcname");
            return (Criteria) this;
        }

        public Criteria andBcidIsNull() {
            addCriterion("bcid is null");
            return (Criteria) this;
        }

        public Criteria andBcidIsNotNull() {
            addCriterion("bcid is not null");
            return (Criteria) this;
        }

        public Criteria andBcidEqualTo(Integer value) {
            addCriterion("bcid =", value, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidNotEqualTo(Integer value) {
            addCriterion("bcid <>", value, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidGreaterThan(Integer value) {
            addCriterion("bcid >", value, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidGreaterThanOrEqualTo(Integer value) {
            addCriterion("bcid >=", value, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidLessThan(Integer value) {
            addCriterion("bcid <", value, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidLessThanOrEqualTo(Integer value) {
            addCriterion("bcid <=", value, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidIn(List<Integer> values) {
            addCriterion("bcid in", values, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidNotIn(List<Integer> values) {
            addCriterion("bcid not in", values, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidBetween(Integer value1, Integer value2) {
            addCriterion("bcid between", value1, value2, "bcid");
            return (Criteria) this;
        }

        public Criteria andBcidNotBetween(Integer value1, Integer value2) {
            addCriterion("bcid not between", value1, value2, "bcid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}